import { defHttp } from '/@/utils/http/axios';
import { useGlobSetting } from '/@/hooks/setting';
import { BasicModel } from '../model/baseModel';

const { adminPath } = useGlobSetting();

export interface BaseApiReq extends BasicModel<BaseApiReq> {
 
}

export interface BadeApiResult extends BasicModel<BadeApiResult> {

}

export const getStocks = (params?: any, data?:any) => {
  return defHttp.postJson<any>({ url: adminPath + '/stock/getStocks', params, data });
}

export const getStocksOfDateRange = (params?: any, data?:any) => {
  return defHttp.postJson<any>({ url: adminPath + '/stock/getStocksOfDateRange', params, data });
}

export const getStockAiRecommendStockList = (params?: any) => {
  var { stockCode } = params;
  return defHttp.get<Recordable>({ url: adminPath+'/stock/getStockAiRecommendStockList/'+stockCode ,params});
}

export const getStock = (params?: any) => {
  var { stockCode } = params;
  return defHttp.get<Recordable>({ url: adminPath+'/stock/getStock/'+stockCode, params});
}




